package com.bdqn.mapper;

import com.bdqn.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface Usermapper extends JpaRepository<User,Integer> {

    @Query(value = "select * from smbms_user where like username=?",nativeQuery = true)
    List<User> queryByNameUser(String name);
}
